package SocialMediaSentiment;

import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;

public class SpellingCheckTweet  extends StandardFunctions{

	public static void main( String args[] ){
		String tweet;
		String file = "Trainset.xls";
		try {
			HashMap<Integer, String[]> temp = ReadExcel.read(file, 9, 4);
			String[] data;
			Iterator<Integer> k = temp.keySet().iterator();
			while(k.hasNext()){
				data = temp.get(k.next());
				tweet = data[0];
				System.out.println(tweet);
				tweet = CorrectTweet(tweet);			
				System.out.println(tweet);
				

				
			}
		} catch (IOException e) {
			e.printStackTrace();
			System.err.println("Unable to read "+file);
		}
		
		//String tweet = CorrectTweet(tweet);

	}

}
